package com.dana.system.test.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dana.system.test.domain.Test;
import com.dana.system.test.mapper.TestMapper;
import com.dana.system.test.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ITestServiceImpl implements ITestService {
    @Autowired
    TestMapper mapper;
    @Override
    public List<?> list() {
        LambdaQueryWrapper lambdaQueryWrapper=new LambdaQueryWrapper();
        return mapper.selectList(lambdaQueryWrapper);
    }

    @Override
    public void add() {
        Test test=new Test();
        test.setTitle("测试uuid");
        test.setContent("uuid生成");
        mapper.insert(test);
    }
}
